package com.score.pojo;

public enum Position {
    ONE(1, "headmaster", "班主任"),
    TWO(2, "instructor", "辅导员"),
    THREE(3, "stucadres", "查寝干部"),
    FOUR(4, "dean", "院长"),
    FIVE(5, "deputySecretary", "副书记"),
    SIX(6, "administrators", "超级管理员"),
    SENVEN(5, "lingdao", "学院领导"),
    ZERO(0, "student", "学生");

    private Integer positionNum;
    private String engPosition;
    private String chiPosition;

    Position(Integer positionNum, String engPosition, String chiPosition) {
        this.positionNum = positionNum;
        this.engPosition = engPosition;
        this.chiPosition = chiPosition;
    }

    public static String getChiPosition(Integer positionNum) {
        for (Position c : Position.values()) {
            if (c.getPositionNum()==positionNum) {
                return c.getChiPosition();
            }
        }
        return null;
    }
    public static String getChiPosition1(String engPosition) {
        for (Position c : Position.values()) {
            if (c.getEngPosition().equals(engPosition)) {
                return c.getChiPosition();
            }
        }
        return null;
    }

    public Integer getPositionNum() {
        return positionNum;
    }

    public void setPositionNum(Integer positionNum) {
        this.positionNum = positionNum;
    }

    public String getEngPosition() {
        return engPosition;
    }

    public void setEngPosition(String engPosition) {
        this.engPosition = engPosition;
    }

    public String getChiPosition() {
        return chiPosition;
    }

    public void setChiPosition(String chiPosition) {
        this.chiPosition = chiPosition;
    }
}
